<?php echo $this->Session->flash(); ?>
<?php echo $form->create('TopographicArea'); ?>
<?php echo $form->hidden("TopographicArea.topographic_map_id", array('value' => $topographic_map_id)); ?>
<?php echo $form->input("TopographicArea.area_type_id", array('label' => 'Tipo de área', 'empty' => 'Tipo de área')); ?>
<?php echo $form->input("TopographicArea.magnitud", array('label' => 'Área (ha)')); ?>
<?php
if ($this->Session->read('estado') == 0)
    echo $ajax->submit('Guardar', array('url' => array('controller' => 'TopographicAreas', 'action' => 'add', $topographic_map_id, $property_id), 'update' => 'content', 'indicator' => 'loading'));
?>
<?php echo $form->end(); ?>
<table width="100%" border="0"  CellSpacing=10  align="center" >
    <tbody>
        <tr>    
            <td><?php echo $ajax->link($html->image('regresar.gif', array('width' => '30', 'heigth' => '30', 'alt' => 'Regresar', 'title' => 'regresar')), array('controller' => 'TopographicAreas', 'action' => 'index', $topographic_map_id, $property_id), array('update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading', 'escape' => false)); ?></td>
        </tr>
    </tbody>
</table>